package com.bodacn.keypoint;

import android.app.Application;
import android.bluetooth.BluetoothAdapter;
import android.content.res.Configuration;
import android.util.Log;

public class MainApplication extends Application {
    String TAG="MainApplication";
	public BluetoothAdapter btAdapter = null;
    public static String ServerIP,UserName,Password,DBName,TermNo="";
    public static String DaliyPower="Y";
    public static String CheckFactory="1";
    public static String apiUrl="";
    public static int newVer=0;

    @Override
    public void onCreate() {
        // 程序创建的时候执行
        Log.d(TAG, "onCreate");
        super.onCreate();
    }
    @Override
    public void onTerminate() {
        // 程序终止的时候执行
        Log.d(TAG, "onTerminate");
        super.onTerminate();
    }
    @Override
    public void onLowMemory() {
        // 低内存的时候执行
        Log.d(TAG, "onLowMemory");
        super.onLowMemory();
    }
    @Override
    public void onTrimMemory(int level) {
        // 程序在内存清理的时候执行
        Log.d(TAG, "onTrimMemory");
        super.onTrimMemory(level);
    }
    @Override
    public void onConfigurationChanged(Configuration newConfig) {
        Log.d(TAG, "onConfigurationChanged");
        super.onConfigurationChanged(newConfig);
    }

    public void setServerIP(String textData) {
        this.ServerIP = textData;
    }
    public String getServerIP() {
        return ServerIP;
    }
    public void setUserName(String textData) {
        this.UserName = textData;
    }
    public String getUserName() {
        return UserName;
    }
    public void setPassword(String textData) {
        this.Password = textData;
    }
    public String getPassword() {
        return Password;
    }

    public void setDBName(String textData) {
        this.DBName = textData;
    }
    public String getDBName() {
        return DBName;
    }
    public void setTermNo(String textData) {
        this.TermNo = textData;
    }
    public String getTermNo() {
        return TermNo;
    }

    public void setDaliyPower(String textData) {
        this.DaliyPower = textData;
    }
    public static String getDaliyPower() {
        return DaliyPower;
    }

    public void setCheckFactory(String textData) {
        this.CheckFactory = textData;
    }
    public static String getCheckFactory() {
        return CheckFactory;
    }
}
